package books.ThinkingInJava.src.Chapter19;

/**
 * @author bloodcolding
 * @since 1/4/2019 9:21 AM
 */
enum Shining {
    TWINS, BLOOD, GRANDPA
}//内容必须大写

public class PrintEnum {
    public static void main(String[] arg) {
        for (Shining s :
                Shining.values()) {
            System.out.println(s);
            System.out.println(s.ordinal());
        }

    }
}

